﻿using System.ComponentModel.DataAnnotations;

namespace Entity.System.DTO.Menu
{
    /// <summary>
    /// 菜单表模型 - 更新
    /// </summary>
    public class MenuUpdateDTO
    {
        /// <summary>
        /// 菜单id
        /// </summary>
        [Required(ErrorMessage = "菜单Id不可为空")]
        public string Id { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        [Required(ErrorMessage = "菜单名称Name不可为空")]
        public string Name { get; set; }

        /// <summary>
        /// 菜单icon
        /// </summary>
        public string? Icon { get; set; }

        /// <summary>
        /// 上级菜单id
        /// </summary>
        public string? SuperiorId { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        [Required(ErrorMessage = "序号Order不可为空")]
        public int MenuOrder { get; set; }

        /// <summary>
        /// 是否渲染
        /// </summary>
        [Required(ErrorMessage = "是否渲染Show不可为空")]
        public bool Show { get; set; }

        /// <summary>
        /// 菜单地址
        /// </summary>
        public string? Url { get; set; }
    }
}
